#include <miscutil.h>
#include <async_server.h>
#include <logicsystem.h>
#include <filetransffersystem.h>
#include <filesystem>

int main() {
	//Json::Value root;
	//Util::MiscUtil::getFileTree("../res", root);
	//Json::StreamWriterBuilder builder;
	//const std::string json_file = Json::writeString(builder, root);
	//std::cout << json_file << std::endl;
	LogicSystem::getInstance().init();
	FileTransfferSystem::getInstance().init();
	boost::asio::io_context ioct;
	AsyncServer server(ioct);
	server.start();
	ioct.run();
}